how to select capacitor size and rating